package com.imooc.maokeyang.alllearning.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@ApiModel("用户查询条件 DTO")
public class UserQueryDTO implements Serializable {
    private static final long serialVersionUID = 912321312312321L;


    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true, example = "yudaoyuanma")
    private String username;
}
